package com.itheima_test;

import java.util.ArrayList;
import java.util.Collection;
import java.util.stream.Stream;

/*
    请分别写出获取并发流的两种方式。
 */
public class Test07 {
    public static void main(String[] args) {
        Collection<String> coll = new ArrayList<String>();
        Stream<String> paralleStream1 = coll.parallelStream();
        Stream<Integer> paralleStream2 = Stream.of(100, 200, 300, 400).parallel();

    }
}
